import Vue from 'vue'

import Cookies from 'js-cookie'

import 'font-awesome/css/font-awesome.min.css'

import App from './App.vue'
// 引入element和样式
import Element from 'element-ui'
import './assets/styles/element-variables.scss'


//全局样式
import '@/assets/styles/index.scss' // global css
import store from './store'
import router from './router'

import permission from './directive/permission'

//添加echarts到vue原型
import * as echarts from 'echarts';
Vue.prototype.$echarts=echarts

import './permission' // permission control

Vue.use(permission)



Vue.use(Element, {
  size: Cookies.get('size') || 'medium' // set element-ui default size
})


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
